package com.woniuxy.qiantai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.qiantai.entity.China;
import com.woniuxy.qiantai.mapper.ChinaMapper;
import com.woniuxy.qiantai.service.ChinaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author woniumrwang
 * @since 2023-01-06 02:44:36
 */
@Service
public class ChinaServiceImpl extends ServiceImpl<ChinaMapper, China> implements ChinaService {

    @Autowired
    ChinaMapper chinaMapper;

    @Override
    public List<China> queryList(Integer pid) {

        QueryWrapper<China> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("Pid",pid);

        List<China> resultList = chinaMapper.selectList(queryWrapper);
        return resultList;
    }
}
